﻿using AtomUI.Controls;
using AtomUI.ReactiveUI;
using AtomUI.Theme.Language;
using Avalonia;
using Avalonia.Interactivity;
using Avalonia.Threading;
using ReactiveUI;
using SD.App.Desktop.ViewModels;
using System;
using System.Diagnostics;
using System.Reactive.Disposables;

namespace SD.App.Desktop.Views;

public partial class Register : ReactiveWindow<RegisterViewModel>
{
    public Register()
    {
        InitializeComponent();
        this.WhenActivated(_ => { 
        
        }); // 自动管理绑定生命周期
    }

    protected override void OnClosed(EventArgs e)
    {
        base.OnClosed(e);
        (DataContext as IDisposable)?.Dispose();
    }
}